﻿@model PIB.Models.Vak

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Vak</legend>
        
        <div class="editor-field">
            <h4>Vak naam:</h4>
            @Html.EditorFor(model => model.VakNaam)
            @Html.ValidationMessageFor(model => model.VakNaam)
        </div>
        <br />
        <div style="border: 1px solid black">
            <h4>Beoordeelaar</h4>
            @Html.DropDownList("BeoordelaarId", "Selecteer")
        </div>







        <p>
            <input type="submit" value="Voeg toe" class="New_Button" name="command" />
            <input type="submit" value="Terug naar Lijst" class="New_Button" onclick="location.href='@Url.Action("Index")'" />
        </p>

    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
